package model.dap.dao;

import java.util.List;

import model.dap.domain.DealCategory;
import model.dap.mapper.DealCategoryMapper;

import org.apache.ibatis.session.SqlSession;
import org.apache.log4j.Logger;

import common.base.DaoConfig;

public class DealCategoryDAO implements DealCategoryMapper {

	SqlSession session  = DaoConfig.getSqlSessionFactory().openSession();
	Logger log = Logger.getLogger(DealCategoryDAO.class);
	// =====================================================================================================
	// FILTER DEAL CATEGORY LIST (ALL)
	@Override
	public List<DealCategory> selectDealCategory(int categoryID) {
		// TODO Auto-generated method stub
		try{
			return session.getMapper(DealCategoryMapper.class).selectDealCategory(categoryID);
		}catch (Exception e) {
			session.rollback();
		}finally{
			session.close();
		}
		return null;
	}
}
